package com.pig4cloud.pig.consumer.client;

import com.pig4cloud.pig.admin.api.entity.NewsList;
import com.pig4cloud.pig.common.core.util.R;
import com.pig4cloud.pig.common.feign.annotation.NoToken;
import com.pig4cloud.pig.common.security.annotation.Inner;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import com.pig4cloud.pig.common.core.constant.ServiceNameConstants;
import java.util.List;

@FeignClient(contextId = "newsListClient",value = ServiceNameConstants.UMPS_CONSUMER)
public interface NewsListClient {

	@Inner
	@PostMapping("/gatherNews/batchInsert")
	R batchInsert(@RequestBody List<NewsList> newsLists);


}
